package router

import (
	"go_final/mxshop_api/user_web/api"
	middlewares2 "go_final/mxshop_api/user_web/middleware"

	"github.com/gin-gonic/gin"
)

func InitUserRouter(Router *gin.RouterGroup) {
	UserRouter := Router.Group("user")

	{
		UserRouter.GET("list", middlewares2.JWTAuth(), middlewares2.IsAdmin(), api.GetUserList)
		UserRouter.POST("pwd_login", api.PasswordLogin)
		UserRouter.POST("register", api.Register)
	}
}
